/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/

/**
 * $Id: timestamp.hpp,v 1.7 2009-05-13 07:18:19 amaula Exp $
 *
 * \file
 * \brief Definition for common datatype 'TDevicePosition'
 * \author Matthieu Myrsky <matthieu.myrsky@tkk.fi>
 */
#ifndef _MACI_COMMON_DEVICEPOSITION_HPP_
#define _MACI_COMMON_DEVICEPOSITION_HPP_
#include "ownutils.h"
#include "gimutils.h"

namespace MaCI {
  namespace Common {



    struct TDevicePosition{

      TDevicePosition(float aX = 0.0,
                      float aY = 0.0,
                      float aZ = 0.0,
                      float aRoll = 0.0,
                      float aPitch = 0.0,
                      float aYaw = 0.0)
        :x(aX),
         y(aY),
         z(aZ),
         roll(aRoll),
         pitch(aPitch),
         yaw(aYaw){}



      float x;            ///< x coordinate of device 
      float y;            ///< y coordinate of device
      float z;            ///< z coordinate of devide
      float roll;         ///< roll angle of device. angle around x-axis
      float pitch;        ///< pitch angle of device. angle around y-axis
      float yaw;
    };

 }
}

#endif
